package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegionMapper {

    int insert(Region record);

    Region selectByPrimaryKey(Long id);
    //单个属性做条件判断,需要贴注解
    List<Region> selectAll(@Param("state") Integer state);

    int updateByPrimaryKey(Region record);

    List<Region> selectForList(QueryObject qo);

    List selectByParentId(QueryObject qo);

    void changeStatus(@Param("id") Long id, @Param("state") Integer state);
}